Skip to content

Conversation

@Amolith
Copy link
Contributor

@Amolith Amolith commented Nov 21, 2025

Adds GetReasoning method to handle different providers using either reasoning or reasoning_content field names. So far, Cerebras is the only one I've noticed using this structure.

https://inference-docs.cerebras.ai/capabilities/reasoning

Assisted-by: GLM 4.6 via Crush

  • I have read CONTRIBUTING.md.
  • I have created a discussion that was approved by a maintainer (for new features).

Adds GetReasoning method to handle different providers using either
'reasoning' or 'reasoning_content' field names. So far, Cerebras is the
only one I've noticed using this structure.

https://inference-docs.cerebras.ai/capabilities/reasoning

Assisted-by: GLM 4.6 via Crush
@Amolith Amolith marked this pull request as draft November 21, 2025 19:07
@Amolith
Copy link
Contributor Author

Amolith commented Nov 21, 2025

At first I thought the failing tests were expected because we're now passing reasoning_content back where we weren't before, but from checking their docs, that's actually incorrect. They expect reasoning merged into the main content string instead. Is that enough of a deviation from the rest of openai-compat to warrant a new handler/provider just for Cerebras?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants